<?php
if (!defined('INDEX')) {
	exit ('Access Denied');
}

$parameter=act_wap_user_set();
extract($parameter);
include(TPLPATH.'/inc/header_3.tpl.php');
?>
<script>
function cbCheckForm(input,$form){
	var url='<?=wap_l(MOD,ACT)?>';
	url=ddJoin(url,input);
	$.ajax({
		url: url,
		dataType:'jsonp',
		jsonp:"callback",
		success: function(data){
			if(data.s==1){
				alert('设置完成',goBack);
			}
			else{
				alert(data.r);
			}
		}
	});
	return false;
}

function goBack(){
	history.back();
}
</script>
          <div class="admin_xfl">
                    <ul>
            <li><a href="<?=wap_l('user','set')?>"  <?php if($act=='set'){?>class="on"<?php }?>>账号设置</a> </li>
            <li > <a href="<?=wap_l('user','tbnick')?>" <?php if($act=='tbnick'){?>class="on"<?php }?>>淘宝账号绑定</a> </li>
            <li > <a href="<?=wap_l('user','pwd')?>" <?php if($act=='pwd'){?>class="on"<?php }?>>修改密码</a> </li>
                    </ul>
           </div>	
<div class="p15" align="center" style="margin-top:-10px">   
<div class="register">
    <form onSubmit="return checkForm($(this),cbCheckForm)" action="">
    <table border="0" width="100%" cellpadding="0" cellspacing="0" >
	 <?php if($dduser['default_pwd']!=''){?><tr height="40">
		  <td width="70" height="35"  style="text-align:left">默认密码：<font color="#FF0000"><?=$dduser['default_pwd']?></font></td>
		</tr> <?php }?>
		<tr height="40">
		  <td><input id="old_password" type="password" name="old_password" class="ddinput"  placeholder="请输入登录密码" value="" dd-required/></td>
		</tr>
		</tr>
        <tr height="40">
		  <td  height="35" style="text-align:left">电子邮箱 </td>
		</tr>
		<tr height="40">
		  <td><input id="email" name="email" value="<?=$dduser['email']?>"  class="ddinput" placeholder="请输入电子邮箱" dd-required dd-type="email" type="text"></td>
		</tr>
		  <tr height="40">
		  <td  height="35" style="text-align:left">姓名 </td>
		</tr>
		<tr height="40">
		  <td><input id="realname" name="realname" value="<?=$dduser['realname']?>" <?=$dduser['realname']?'disabled="disabled"':''?> placeholder="真实姓名" dd-required type="text" class="ddinput"  ></td>
		</tr>
		  <tr height="40">
		  <td  height="35" style="text-align:left">支付宝 </td>
		</tr>
		<tr height="40">
		  <td><input id="alipay" name="alipay" value="<?=$dduser['alipay']?>" <?=$dduser['alipay']?'disabled="disabled"':''?> class="ddinput" placeholder="常用支付宝" dd-required dd-type="alipay" type="text"></td>
		</tr>
		  <tr height="40">
		  <td  height="35" style="text-align:left">手机号码 </td>
		</tr>
		<tr height="40">
		  <td><input id="mobile" name="mobile" value="<?=$dduser['mobile']?>" class="ddinput"  placeholder="用于短信提醒" dd-required dd-type="mobile" type="text"></td>
		</tr>
		  <tr height="40">
		  <td  height="35" style="text-align:left">联系QQ </td>
		</tr>
		<tr height="40">
		  <td><input id="qq" name="qq" value="<?=$dduser['qq']?>" class="ddinput" placeholder="以便客服及时联系您" dd-type="qq" type="text"></td>
		</tr>
		<tr height="40">
		  <td height="90" colspan="2">    <input name="do" type="hidden" value="update" ><input type="hidden" name="sub" value="1" />
          <input type="submit" value="保存信息" id="sub"  class="register_dl">   
  </td>
		  <td></td>
		</tr>
	  </table>
      </form>	 
</div>


</div>
<?php include(TPLPATH.'/inc/footer.tpl.php');?>